import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import dataV from '@jiaminghi/data-view';
import http from '@/utils/http'
import apis from '@/api'
import XEUtils from 'xe-utils'
import VXEUtils from 'vxe-utils'
import scroll from 'vue-seamless-scroll'
// 引入ant-design-vue
import { Popover, Tabs, Tooltip, Row, Col, Icon } from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
// 引入全局css
import './assets/scss/style.scss';
// 按需引入vue-awesome图标
import awesomeIcon from 'vue-awesome/components/Icon';
import 'vue-awesome/icons/chart-bar.js';
import 'vue-awesome/icons/chart-area.js';
import 'vue-awesome/icons/chart-pie.js';
import 'vue-awesome/icons/chart-line.js';
import 'vue-awesome/icons/align-left.js';

//引入echart
//4.x 引用方式
// import echarts from 'echarts'
//5.x 引用方式为按需引用
//希望使用5.x版本的话,需要在package.json中更新版本号,并切换引用方式
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts

Vue.prototype.$http = http
Vue.prototype.$apis = apis
Vue.config.productionTip = false;

// 全局注册
Vue.component('icon', awesomeIcon);
Vue.use(dataV);
Vue.use(VXEUtils, XEUtils)
Vue.use(scroll)
Vue.use(Popover);
Vue.use(Tabs);
Vue.use(Tooltip);
Vue.use(Row);
Vue.use(Col);
Vue.use(Icon);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app');
